import { boot } from 'quasar/wrappers';
import { EventBus } from 'quasar';
import { eventBusKey } from 'src/use';

export default boot(({ app }) => {
  // for Composition API

  const bus = new EventBus();
  app.provide(eventBusKey, bus);

  // 加载js
  const script = document.createElement('script');
  script.src = '/tac/load.min.js';
  script.type = 'text/javascript';
  document.head.appendChild(script);
});
